<%@ page import="com.yfeng.common.utils.Util" %>
<%@ page import="com.yfeng.goodjuhome.model.User" %>
<%@ page import="org.apache.commons.lang.StringUtils" %>
<%@ page import="java.util.List" %>
<%@ page import="java.util.Map" %>
<%@ page contentType="text/html;charset=UTF8" %>
<%
    List<Map> qyNewsList = (List) request.getAttribute("qyNewsList");
    List<Map> ggNewsList = (List) request.getAttribute("ggNewsList");
    List<Map> productList = (List) request.getAttribute("productList");
    User user = (User) request.getAttribute("userobj");


%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/user/qy/css/qy_css.css"/>
    <title>企业页面</title>
</head>
<script language="javascript" type="text/javascript"
        src="${pageContext.request.contextPath}/user/qy/js/FilmMovie.js"></script>
<script language="javascript" type="text/javascript"
        src="${pageContext.request.contextPath}/user/qy/js/Andy_base.js"></script>
<script language="javascript" type="text/javascript"
        src="${pageContext.request.contextPath}/user/qy/js/Andy_relating.js"></script>
<script language="javascript" type="text/javascript">
    <!--
        var photo1=new FilmMovie.CreateFilm("Photo_cpADrush","photo1","productPhoto","productPhoto_command");
        var photo1Command=new FilmMovie.CreateCommandButton(photo1,"moviePlay","movieStop","moviePrev","movieNext");

        photo1.Add("文字说明","img/01.jpg","#");
        photo1.Add("文字说明","img/02.jpg","#");
        photo1.Add("文字说明","img/03.jpg","#");
        photo1.Add("文字说明","img/04.jpg","#");

        window.onload=function()
        {
            photo1.init();
            photo1Command.FilmBind();
            photo1.Play();
        }
        var muobj=document.getElementById("mu01");
        if(muobj!=null)
        {
            muobj.className="selMainMenu";
        }
    -->
</script>
<body>
<center>
    <!-------------------top------------------------------------>
    <jsp:include page="top.jsp" flush="true"/>
    <!-------------------top end--------------------------------->
    <!-----------------------NO.1------------------------------------>
    <div class="no01">
        <div class="no01_1">
            <div class="biaoti">新品展示</div>
            <!---------------相册----------------->
            <div id="c5">
                <div class="moivecontent" id="content_5">
                    <div id="productPhoto_play">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="bor01" id="productPhoto">
                            <tr>
                                <td><a href="#" target="_blank" title="图片"><img src="#" width="16" height="16"
                                                                                border="0" name="Photo_cpADrush"
                                                                                id="Photo_cpADrush" alt="图片"/></a>
                                </td>
                            </tr>
                        </table>
                        <div id="productPhoto_command">
                            <div id="productPhoto_command1">
                                <a href="#" title="播放/暂停"><img id="moviePlay"
                                                               PlaySrc="${pageContext.request.contextPath}/user/qy/img_xt/bt_play.gif"
                                                               PauseSrc="img_xt/bt_pause.gif" src="img_xt/bt_pause.gif"
                                                               border="0" alt="播放/暂停"/></a>
                                <a href="#" title="停止播放"><img alt="停止播放" id="movieStop"
                                                              src="${pageContext.request.contextPath}/user/qy/img_xt/bt_stop.gif"
                                                              border="0"/></a>
                                <a href="#" title="上一页"><img id="moviePrev"
                                                             src="${pageContext.request.contextPath}/user/qy/img_xt/bt_pre.gif"
                                                             alt="上一页" border="0"/></a>
                                <a href="#" title="下一页"><img id="movieNext"
                                                             src="${pageContext.request.contextPath}/user/qy/img_xt/bt_next.gif"
                                                             border="0" alt="下一页"/></a>
                            </div>
                            <div id="productPhoto_command2">
                                <a href="更多新的链接" target="_blank" title="更多新品"><img
                                        src="${pageContext.request.contextPath}/user/qy/img_xt/bt_zoom.gif"
                                        name="movieView" border="0" id="movieView" alt="更多新品"/></a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!---------------------------相册 end--------------------------->
        </div>
        <div class="no01_2">
            <div class="biaoti">公司简介</div>
            <div class="gsjj">
                ${userobj.username}
            </div>
            <span style="width:80px; float:right; color:#FF9933;">更多详情</span>
        </div>
    </div>
    <!-----------------------NO.1 end------------------------------------>
    <!------------------------NO.2------------------------------------->
    <div class="no02">
        <div class="no02_1">
            <div class="biaoti"><a href="productList.jsp?uid=<?php echo $uid;?>">产品展示</a></div>
            <div class="cprr">
                <ul>
                    <%
                        for (Map map : productList) {
                            String name = Util.getEmptyStr(map.get("name"));
                            String path = Util.getEmptyStr(map.get("path"));
                            if (StringUtils.isEmpty(path))
                                path = "${pageContext.request.contextPath}/common/images/nopic.jpg";
                            else
                                path = "${pageContext.request.contextPath}/common/" + path;

                    %>
                    <li><img src="<%=path%>" width="105" height="110"><br/><%=name%>
                    </li>
                    <%}%>

                </ul>
            </div>
        </div>
        <div class="no02_2">
            <div class="biaoti">成功案例</div>
            <div class="alrr">
                <ul>

                    <li><img src="33" width="105" height="110"><br/>aaa</li>
                    <li><img src="33" width="105" height="110"><br/>aaa</li>
                    <li><img src="33" width="105" height="110"><br/>aaa</li>

                </ul>
            </div>
        </div>
    </div>
    <!------------------------NO.2 end------------------------------------->
    <!------------------------NO.3------------------------------------->
    <div class="no03">
        <div class="no03_1">
            <div class="biaoti">客户留言</div>
            <div class="xxrr">
                <ul>
                    <li>2010年成都地板十年规划方案</li>
                    <li>2010年成都地板十年规划方案</li>
                    <li>2010年成都地板十年规划方案</li>
                    <li>2010年成都地板十年规划方案</li>
                    <li>2010年成都地板十年规划方案</li>
                    <li>2010年成都地板十年规划方案</li>
                    <li>2010年成都地板十年规划方案</li>
                    <li>2010年成都地板十年规划方案</li>
                </ul>
            </div>
        </div>
        <div class="no03_2">
            <div class="biaoti">企业新闻</div>
            <div class="xxrr">
                <ul>
                    <%
                        for (Map qyNewsMap : qyNewsList) {
                           String title = Util.getEmptyStr(qyNewsMap.get("title"));

                    %>
                        <li><a href=""><%=title%></a></li>
                    <%}%>
                </ul>
            </div>
        </div>
        <div class="no03_3">
            <div class="biaoti">产品公告</div>
            <div class="xxrr">
                <ul>
                     <%
                        for (Map ggNewsMap : ggNewsList) {
                           String title = Util.getEmptyStr(ggNewsMap.get("title"));

                    %>
                        <li><a href=""><%=title%></a></li>
                    <%}%>
                </ul>
            </div>
        </div>
    </div>
    <!------------------------NO.3 end------------------------------------->
    <!------------------------NO.4----------------------------------------->
    <div class="no04">
        <div class="biaoti">最近访客</div>
        <div class="fkrr">
            <ul>

                <li><a href="../userView.php?id=3" target="_black"><img src="3" width="60" height="60"
                                                                        border="0"></a><br/><br/>14
                </li>
                <li><a href="../userView.php?id=3" target="_black"><img src="3" width="60" height="60"
                                                                        border="0"></a><br/><br/>test
                </li>
                <li><a href="../userView.php?id=3" target="_black"><img src="3" width="60" height="60"
                                                                        border="0"></a><br/><br/>test
                </li>
            </ul>
        </div>
    </div>
    <!------------------------NO.5----------------------------------------->

    <!-----------------------------bottom----------------------------------->
    <jsp:include page="bottom.jsp" flush="true"/>
</center>
</body>
</html>
